//
//  SearchCell.swift
//  CompareBuying
//
//  Created by 唐先才 on 16/2/3.
//  Copyright © 2016年 唐先才. All rights reserved.
//

import UIKit

class SearchCell: UICollectionViewCell {

    @IBOutlet weak var iconView: UIImageView!
    @IBOutlet weak var iconLabel: UILabel!
    
    func configCellWithModel(model: TxcModel) {
        guard let catPic = model.CatImage, name = model.CatName else {
            print("搜索页视图赋值失败")
            return
        }
        iconView.sd_setImageWithURL(NSURL(string: catPic))
        iconLabel.text = name
    }

    override func awakeFromNib() {
        super.awakeFromNib()
    }

}
